<!-- 限售解禁 -->
<template>
  <div class="table w1021">
    <div class="tableTh tableTr flex">
      <span class="tableTd w130">预计上市日</span>
      <span class="tableTd w220">解禁数量（万股）</span>
      <span class="tableTd w220">占当前总股本比例（％）</span>
      <span class="tableTd w130">
        解禁市值
        <br />（万元）
      </span>
      <span class="tableTd w130">解禁原因</span>
      <span class="tableTd w220">
        最新收盘价
        <br />（元）
      </span>
    </div>
    <div class="tableTr tableBody top flex" v-for="item in data" :key="item.id">
      <span class="orange tableTd w130">{{item.tradeDate}}</span>
      <span class="orange tableTd w220">{{item.totLtdVol|filterVal("numberNo")}}</span>
      <span class="orange tableTd w220">{{item.shrPct|filterVal("numberNo")}}</span>
      <span class="orange tableTd w130">{{item.stkVal|filterVal("numberNo")}}</span>
      <span class="orange tableTd w130">{{item.ltdReas|filterVal}}</span>
      <span class="orange tableTd w220">{{item.tClose|filterVal}}</span>
    </div>
    <div class="tableNone orange w1021 top" v-if="data.length==0">暂无数据</div>
  </div>
</template>

<script>
import { numberNo } from "../../script/api";
export default {
  data() {
    return {};
  },
  props: ["data"],
  filters: {
    filterVal(ops, num) {
      if (num == "numberNo") {
        return numberNo(ops, num);
      }
      return ops ? ops : "--";
    }
  },
  components: {},
  computed: {},
  mounted() {},
  methods: {}
};
</script>
<style lang='scss' scoped>
</style>